class Queue(object):    
    def __init__(self, object = []):
        self.queue = []
        if object:
            self.queue = object         
    def enqueue(self, obj):
        self.queue.append(obj)
    
    def dequeue(self):
       if len(self.queue) == 0:
           print "Can't dequeue, queue is empty"
           pass
       else: 
           result = self.queue[0]
           self.queue.remove(result)
           return result
    @property
    def length(self):
        return len(self.queue)
        
    @property
    def first(self):
        if self.length == 0:
            print "Queue is empty"
        else: 
            return self.queue[0]
    
a = Queue()
print a.length